﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace Unis.FMS.Platform.Order.Domain {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "doc_dpt_trip_stop_terminal_approve_packages", DisableSyncStructure = true)]
	public partial class DocDptTripStopTerminalApprovePackages {

		/// <summary>
		/// 主键
		/// </summary>
		[JsonProperty, Column(Name = "id", DbType = "int", IsPrimary = true, IsIdentity = true)]
		public int Id { get; set; }

		/// <summary>
		/// approve表外键
		/// </summary>
		[JsonProperty, Column(Name = "approve_id", DbType = "int")]
		public int ApproveId { get; set; }

		/// <summary>
		/// 审批包裹类型（passed/open/unmatched）
		/// </summary>
		[JsonProperty, Column(Name = "approve_package_type", StringLength = 50, IsNullable = false)]
		public string ApprovePackageType { get; set; }

		/// <summary>
		/// 创建时间
		/// </summary>
		[JsonProperty, Column(Name = "create_time", DbType = "datetime")]
		public DateTime CreateTime { get; set; }

		/// <summary>
		/// app操作的当地时间
		/// </summary>
		[JsonProperty, Column(Name = "local_time_app", StringLength = 50, IsNullable = false)]
		public string LocalTimeApp { get; set; }

		/// <summary>
		/// 包裹类型（package/pallet）
		/// </summary>
		[JsonProperty, Column(Name = "package_type", StringLength = 50, IsNullable = false)]
		public string PackageType { get; set; }

		/// <summary>
		/// 扫描码（tracking no、pro no）
		/// </summary>
		[JsonProperty, Column(Name = "scan_no", StringLength = 100, IsNullable = false)]
		public string ScanNo { get; set; }

		/// <summary>
		/// stop序号
		/// </summary>
		[JsonProperty, Column(Name = "stop_sequence", DbType = "int")]
		public int StopSequence { get; set; }

		/// <summary>
		/// task key
		/// </summary>
		[JsonProperty, Column(Name = "task_no", DbType = "bigint")]
		public long TaskNo { get; set; } = 0;

		/// <summary>
		/// tracking no
		/// </summary>
		[JsonProperty, Column(Name = "tracking_no", StringLength = 100, IsNullable = false)]
		public string TrackingNo { get; set; }

	}

}
